package com.inspur.demo.controller;

import com.inspur.demo.base.BaseController;
import com.inspur.demo.common.CommResultMsg;
import com.inspur.demo.common.CommonResultBuilder;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 *    
 * 生产者控制层
 *
 * @desc:
 * @author: li.peng02
 * @date: 2019/2/28
 * @version: v1.0 
 */
@RestController
@ResponseBody
@RequestMapping("/api/producer")
public class ApiProducerController extends BaseController {

    @RequestMapping("/test")
    public CommResultMsg test(String name) {
        String contextPath = this.request.getRequestURL().toString();
        CommonResultBuilder.build(comm, true, contextPath, name);
        return comm;
    }
}
